home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmCreateSimpleOptionMenu.z / XmCreateSimpleOptionMenu
Encoding:
Text File  |  2003-11-18  |  4.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeeOOOOppppttttiiiioooonnnnMMMMeeeennnnuuuu((((3333XXXXUUUU))))NNNNIIIIXXXX SSSSyyyysssstttteeeemmmmXXXXVVVVmmmmCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeeOOOOppppttttiiiioooonnnnMMMMeeeennnnuuuu((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_C_r_e_a_t_e_S_i_m_p_l_e_O_p_t_i_o_n_M_e_n_u - A RowColumn widget    convenience
  10.       creation function
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       #include <Xm/RowColumn.h>
  14.  
  15.       Widget XmCreateSimpleOptionMenu (ppppaaaarrrreeeennnntttt,,,, nnnnaaaammmmeeee,,,, aaaarrrrgggglllliiiisssstttt,,,, aaaarrrrggggccccoooouuuunnnntttt)
  16.            _W_i_d_g_e_t     ppppaaaarrrreeeennnntttt;
  17.            _S_t_r_i_n_g     nnnnaaaammmmeeee;
  18.            _A_r_g_L_i_s_t     aaaarrrrgggglllliiiisssstttt;
  19.            _C_a_r_d_i_n_a_l     aaaarrrrggggccccoooouuuunnnntttt;
  20.  
  21.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.       _X_m_C_r_e_a_t_e_S_i_m_p_l_e_O_p_t_i_o_n_M_e_n_u creates an instance of a RowColumn
  23.       widget of type _X_m_M_E_N_U__O_P_T_I_O_N and returns the associated
  24.       widget ID.
  25.  
  26.       This routine creates an Option Menu and its submenu
  27.       containing PushButtonGadget or CascadeButtonGadget children.
  28.       The name of each button is button_nnnn, where nnnn is an integer
  29.       from 0 to one    minus the number of buttons in the menu.  The
  30.       name of each separator is separator_nnnn, where nnnn is an integer
  31.       from 0 to one    minus the number of separators in the menu.
  32.       Buttons and separators are named and created in the order in
  33.       which    they are specified in the RowColumn simple menu
  34.       creation resources supplied in the argument list.
  35.  
  36.       ppppaaaarrrreeeennnntttt
  37.            Specifies the parent widget ID
  38.  
  39.       nnnnaaaammmmeeee Specifies the name of the created widget
  40.  
  41.       aaaarrrrgggglllliiiisssstttt
  42.            Specifies the argument list
  43.  
  44.       aaaarrrrggggccccoooouuuunnnntttt
  45.            Specifies the number of attribute/value pairs in    the
  46.            argument    list (aaaarrrrgggglllliiiisssstttt)
  47.  
  48.       The user can specify resources in a resource file for    the
  49.       automatically    created    widgets    and gadgets of an OptionMenu.
  50.       The following    list identifies    the names of these widgets (or
  51.       gadgets) and the associated OptionMenu areas.
  52.  
  53.       +o
  54.  
  55.       +o    Option Menu Label Gadget    - "OptionLabel"
  56.  
  57.       +o    Option Menu Cascade Button - "OptionButton"
  58.  
  59.       A number of resources    exist specifically for use with    this
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeeOOOOppppttttiiiioooonnnnMMMMeeeennnnuuuu((((3333XXXXUUUU))))NNNNIIIIXXXX SSSSyyyysssstttteeeemmmmXXXXVVVVmmmmCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeeOOOOppppttttiiiioooonnnnMMMMeeeennnnuuuu((((3333XXXX))))
  71.  
  72.  
  73.  
  74.       and other simple menu    creation routines.  The    only button
  75.       types    allowed    in the _X_m_N_b_u_t_t_o_n_T_y_p_e resource are
  76.       _X_m_P_U_S_H_B_U_T_T_O_N,    _X_m_C_A_S_C_A_D_E_B_U_T_T_O_N, _X_m_S_E_P_A_R_A_T_O_R, and
  77.       _X_m_D_O_U_B_L_E__S_E_P_A_R_A_T_O_R.  For a complete definition of RowColumn
  78.       and its associated resources,    see _X_m_R_o_w_C_o_l_u_m_n(_3_X).
  79.  
  80.      RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  81.       Returns the RowColumn    widget ID.
  82.  
  83.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  84.       _X_m_C_r_e_a_t_e_O_p_t_i_o_n_M_e_n_u(_3_X), _X_m_C_r_e_a_t_e_R_o_w_C_o_l_u_m_n(_3_X),
  85.       _X_m_R_o_w_C_o_l_u_m_n(_3_X), and _X_m_V_a_C_r_e_a_t_e_S_i_m_p_l_e_O_p_t_i_o_n_M_e_n_u(_3_X).
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                        (printed 11/11/03)
  130.  
  131.  
  132.  
  133.